package com.aipp.mall.h5.domain.entity;

import com.aipp.mall.common.anno.Note;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 全国行政区
 * @author cc
 */
@Data
@TableName("address")
public class Area implements Serializable {

    @Serial
    private static final long serialVersionUID = -4250560257540460545L;

    private Integer id;

    @Note(name = "地区邮编")
    private Long code;

    @Note(name = "父地区邮编")
    private Long parentCode;

    @Note(name = "地区名")
    private String name;

    @Note(name = "地区层级")
    private Integer level;

    @Note(name = "CREATED_AT")
    private String createdAt;

    @Note(name = "UPDATED_AT")
    private String updatedAt;

    @Note(name = "DELETED_AT")
    private String deletedAt;

}
